From: Florian Müllner Date: Wed, 28 Oct 2020 20:42:48 +0000 (+0100) Subject: extensions-app: Add quit action X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~767 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8d43deaad5ea3d9c945101a4a4d2c1483d047e07;p=gnome-shell.git extensions-app: Add quit action It's good practice to support the standard -q shortcut, so add a corresponding action and set its accel accordingly. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3335 --- diff --git a/subprojects/extensions-app/js/main.js b/subprojects/extensions-app/js/main.js index aae5b9bfa..2e8b01804 100644 --- a/subprojects/extensions-app/js/main.js +++ b/subprojects/extensions-app/js/main.js @@ -67,6 +67,12 @@ class Application extends Gtk.Application { provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION); + const action = new Gio.SimpleAction({ name: 'quit' }); + action.connect('activate', () => this._window.close()); + this.add_action(action); + + this.set_accels_for_action('app.quit', ['q']); + this._shellProxy = new GnomeShellProxy(Gio.DBus.session, 'org.gnome.Shell.Extensions', '/org/gnome/Shell/Extensions');